<template>
	<view class="content">
		<u-image width="80%" height="300rpx" :src="src"></u-image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<u-button type="primary" @click="tiaozhuan">这是一个uView按钮</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '数据绑定',
				src: '/static/logo.png',
			}
		},
		onLoad() {

		},
		methods: {
			tiaozhuan: function() {
				uni.navigateTo({
					url: '/pages/person/person?test=1'
				});
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}


	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
